package com.sz.biz.common.base.dto;

import com.sz.biz.common.base.entity.AreaCN;
import com.sz.common.base.entity.Entity;
import com.sz.common.base.utils.EntityUtils;

/**
 * Package: com.sz.biz.common.base.dt <br>
 * Function: TODO: ADD FUNCTION <br>
 * Author: Charles. <br>
 * Date: 2017-04-13 11:06:00.
 */
public class AreaModel implements Entity {

    /**
     * 地区Id
     */
    private String id;
    /**
     * 地区名称
     */
    private String name;
    /**
     * 地区父Id
     */
    private String parentId;
    /**
     * 级别
     */
    private Integer level;

    /**
     * 国家编码
     */
    private String countryCode;

    /**
     * hubCode
     */
    private String hubCode;
    /**
     * terminalCode
     */
    private String terminalCode;
    /**
     * 邮政编码起始
     */
    private String startPostCode;
    /**
     * 邮政编码终止
     */
    private String endPostCode;
    /**
     * 区域及电话区域编码
     */
    private String phoneAreaCode;

    public AreaModel(String countryCode, String id, String name) {
        this.countryCode = countryCode;
    }

    public AreaModel(AreaDto dto) {
        EntityUtils.copyPropertiesIgnoreNull(dto, this);
    }

    public AreaModel(AreaCN areaCn) {
        EntityUtils.copyPropertiesIgnoreNull(areaCn, this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getHubCode() {
        return hubCode;
    }

    public void setHubCode(String hubCode) {
        this.hubCode = hubCode;
    }

    public String getTerminalCode() {
        return terminalCode;
    }

    public void setTerminalCode(String terminalCode) {
        this.terminalCode = terminalCode;
    }

    public String getStartPostCode() {
        return startPostCode;
    }

    public void setStartPostCode(String startPostCode) {
        this.startPostCode = startPostCode;
    }

    public String getEndPostCode() {
        return endPostCode;
    }

    public void setEndPostCode(String endPostCode) {
        this.endPostCode = endPostCode;
    }

    public String getPhoneAreaCode() {
        return phoneAreaCode;
    }

    public void setPhoneAreaCode(String phoneAreaCode) {
        this.phoneAreaCode = phoneAreaCode;
    }
}
